<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            padding-bottom: 800px;
            padding-left: 30px;
        }
        .box{
            font-size: 50px;
            color: red;
        }
    </style>
</head>
<body>
    <div id="app">
        <count-comp class="box" :start-val='0' :end-val='10000' :duration='3000'></count-comp>
    </div>
    <script src="../../assets/vue2/vue.js"></script>
    <script src="../../assets/vue-component/vue-count-to.min.js"></script>
    <script>
        console.log(CountTo.default);
        new Vue({
            el:"#app",
            data(){
                return {
                    
                }
            },
            components: {
                "count-comp":CountTo.default
            },
        })
    </script>
</body>
</html>